# -*- coding:utf-8 -*-
# Author：FeiHu

import numpy as np

a = np.arange(5)
print("a = ", a)
print("Clipped ", a.clip(1, 2))

b = np.arange(4)
print("b = ", b)
print("Compressed ", b.compress(b > 2))
